package com.richapp.launcher.database.system.dao;

import android.content.Context;
import android.util.Log;

import com.richapp.launcher.database.system.SystemBaseDao;
import com.richapp.launcher.database.system.mode.BoxPhone;

public class BoxPhoneDao extends SystemBaseDao<BoxPhone>{

	public BoxPhoneDao(Context context) {
		super(context,BoxPhone.class);
	}

	public BoxPhone getWithPhoneUid(String boxCpuId,String phoneUid){
		BoxPhone boxPhone = null;
		try{
			boxPhone = gettOp().queryBuilder().where().eq("boxCpuId",boxCpuId).and().eq("phoneUid",phoneUid).queryForFirst();
		}catch (Exception e){
			Log.e(getClass().getName(), e.getMessage());
		}
		return boxPhone;
	}

}
